package Utils;

import com.example.zx.theline.sgjh.CheckListApFragment;
import com.example.zx.theline.sgjh.CheckListCxFragment;
import com.example.zx.theline.jclr.CustodyListDclFragment;
import com.example.zx.theline.jclr.CustodyListFragment;
import com.example.zx.theline.jclr.CustodyListYclFragment;
import com.example.zx.theline.lyjh.lyyjh.JhshcxFragment;
import com.example.zx.theline.lyjh.lyyjh.JhshyjhFragment;
import com.example.zx.theline.lyjh.lyyjh.JhshywcFragment;
import com.example.zx.theline.lyjh.lyyjh.JhspywcFragment;
import com.example.zx.theline.lyjh.lyrjh.SgrjhCxFragment;
import com.example.zx.theline.lyjh.lyrjh.SgrjhShFragment;
import com.example.zx.theline.lyjh.lyrjh.SgrjhShywcFragment;
import com.example.zx.theline.lyjh.lyzjh.ShzjhFragment;
import com.example.zx.theline.zsjh.ZbyjhFragment;
import com.example.zx.theline.lyjh.lyzjh.ZjhcxFragment;
import com.example.zx.theline.lyjh.lyzjh.ZjhshywcFragment;
import com.example.zx.theline.zsjh.ZsrjhFragment;
import com.example.zx.theline.zsjh.ZsyjhFragment;
import com.example.zx.theline.zsjh.ZszjhFragment;

/**
 * Created by Ren on 2017/9/11.
 */

public class RefreshManager {

    //施工月计划
    public static class Sgyjh {
        //审核月计划 fragment刷新
        static public void RefreshShyjh() {
            JhshyjhFragment.onStartRefresh = true;
        }

        //审核已完成 fragment刷新
        static public void RefreshShywc() {
            JhshywcFragment.onStartRefresh = true;
        }

        //审批已完成 fragment刷新
        static public void RefreshSpywc() {
            JhspywcFragment.onStartRefresh = true;
        }

        //月计划查询 fragment刷新
        static public void RefreshYjhcx() {
            JhshcxFragment.onStartRefresh = true;
        }
    }

    //施工周计划
    public static class Sgzjh {


        //审核周计划 fragment刷新
        static public void RefreshShzjh() {
            ShzjhFragment.onStartRefresh = true;
        }

        //审核已完成 fragment刷新
        static public void RefreshShywc() {
            ZjhshywcFragment.onStartRefresh = true;
        }

        //周计划查询 fragment刷新
        static public void RefreshZjhcx() {
            ZjhcxFragment.onStartRefresh = true;
        }
    }

    //施工日计划
    public static class Sgrjh {
        //审核日计划 fragment刷新
        static public void RefreshShrjh() {
            SgrjhShFragment.onStartRefresh = true;
        }

        //审核已完成 fragment刷新
        static public void RefreshShywc() {
            SgrjhShywcFragment.onStartRefresh = true;
        }

        //日计划查询 fragment刷新
        static public void RefreshRjhcx() {
            SgrjhCxFragment.onStartRefresh = true;
        }
    }

    //监督检查 菜单权限
    public static class Jdjc {
        //施工监护人员安排
        static public void RefreshSgjhryap() {
            CheckListApFragment.onStartRefresh = true;
        }

        //施工监护人员查询
        static public void RefreshSgjhrycx() {
            CheckListCxFragment.onStartRefresh = true;
        }

        //监督检查录入信息
        static public void RefreshJdjclrxx() {
            CustodyListFragment.onStartRefresh = true;
        }

        //监督检查待处理
        static public void RefreshJdjcdcl() {
            CustodyListDclFragment.onStartRefresh = true;
        }

        //监督检查已处理
        static public void RefreshJdjcycl() {
            CustodyListYclFragment.onStartRefresh = true;
        }
    }

    //正式计划
    public static class Zsjh {
        //正式月计划
        static public void RefreshZsyjh() {
            ZsyjhFragment.onStartRefresh = true;
        }

        //正式增补月计划
        static public void RefreshZszbyjh() {
            ZbyjhFragment.onStartRefresh = true;
        }

        //正式周计划
        static public void RefreshZszjh() {
            ZszjhFragment.onStartRefresh = true;
        }

        //正式日计划
        static public void RefreshZsrjh() {
            ZsrjhFragment.onStartRefresh = true;
        }
    }
}